package com.chixing.day09_innerclass.orderclass;

import com.chixing.Homework.Order1.OrderApi;

public class Order implements OrderApi {

    public int a;

    public Order(String orderName, String orderId, int protectNum, double orderPrice, String orderDate) {
        this.orderName = orderName;
        this.orderId = orderId;
        this.protectNum = protectNum;
        this.orderPrice = orderPrice;
        this.orderDate = orderDate;
    }

    public Order() {
    }

    /*
    * 所有订单的抽象父类
    * 封装了订单的所有属性和方法
    * */
    private String orderName;
    private String orderId;
    private int protectNum;
    private double orderPrice;
    private String orderDate;

    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public int getProtectNum() {
        return protectNum;
    }

    public void setProtectNum(int protectNum) {
        this.protectNum = protectNum;
    }

    public double getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(double orderPrice) {
        this.orderPrice = orderPrice;
    }

    public String getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(String orderDate) {
        this.orderDate = orderDate;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderName='" + orderName + '\'' +
                ", orderId='" + orderId + '\'' +
                ", protectNum=" + protectNum +
                ", orderPrice=" + orderPrice +
                ", orderDate='" + orderDate + '\'' +
                '}';
    }

    @Override
    public Order clone() {
        return null;
    }

    @Override
    public int getProdectNum() {
        return 0;
    }

    @Override
    public void setProdectNum(int num) {

    }
}
